/*
 * Created on 2005-8-10
 */
/**
 * 
 */
package com.linkage.lcims.base.po.business;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author Administrator
 *
 */
@SuppressWarnings("serial")
public class BdGroupTransferPK implements Serializable {
	private Integer groupid;
	private Integer servicetype;
	private Integer vendertype;
	private String vendergroupid;
	/**
	 * 
	 */
	public BdGroupTransferPK() {
	}

	public BdGroupTransferPK(Integer groupid, Integer servicetype, Integer vendertype, String vendergroupid){
		this.groupid = groupid;
		this.servicetype = servicetype;
		this.vendertype = vendertype;
		this.vendergroupid = vendergroupid;
	}

	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	public Integer getServicetype() {
		return servicetype;
	}

	public void setServicetype(Integer servicetype) {
		this.servicetype = servicetype;
	}

	public String getVendergroupid() {
		return vendergroupid;
	}

	public void setVendergroupid(String vendergroupid) {
		this.vendergroupid = vendergroupid;
	}

	public Integer getVendertype() {
		return vendertype;
	}

	public void setVendertype(Integer vendertype) {
		this.vendertype = vendertype;
	}
	
	public String toString() {
        return new ToStringBuilder(this)
            .append("groupid", getGroupid())
            .append("servicetype", getServicetype())
            .append("vendertype", getVendertype())
            .append("vendergroupid", getVendergroupid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof BdGroupTransferPK) ) return false;
        BdGroupTransferPK castOther = (BdGroupTransferPK) other;
        return new EqualsBuilder()
            .append(this.getGroupid(), castOther.getGroupid())
            .append(this.getServicetype(), castOther.getServicetype())
            .append(this.getVendertype(), castOther.getVendertype())
            .append(this.getVendergroupid(), castOther.getVendergroupid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getGroupid())
            .append(getServicetype())
            .append(getVendertype())
            .append(getVendergroupid())
            .toHashCode();
    }
}
